﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Qplus.protocol
{
    public class C2L_REQ_LOGIN : OutPacket
    {
        /**
	    * 登陆验证
	    * @param protocolVer 协议版本
	    * @param loginType 登录类型 {@link E_LOGIN_TYPE}
	    * @param uuID 客户端id
	    * @param appID 应用id
	    * @param appVer 客户端版本
	    * @return 数据包
	    */
        public C2L_REQ_LOGIN loginVerify(String protocolVer, int loginType, String account, String pwd, String uuid, String appVer)
        {
            init();
            needReply = true;
            int len = 0;
            len += putVersion(protocolVer);
            len += put1((byte)loginType);

            len += putString1(account);
            len += putString1(pwd);
            len += putString1(uuid);
            len += putString1(appVer);

            postLen(len);
            return this;
        }
    }

}
